package com.hollysys.hollimsa.biz.istio.gateway.domain;

import com.fasterxml.jackson.annotation.JsonInclude;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.List;

/**
 * @author wangyuxi
 * @date 2020/11/03
 **/
@Data
@NoArgsConstructor
@AllArgsConstructor
@Builder
@JsonInclude(JsonInclude.Include.NON_NULL)
public class GatewayDictDTO implements Serializable {

    private static final long serialVersionUID = 8850901352689616330L;
    @ApiModelProperty(value = "前端定位")
    private String id;
    @ApiModelProperty(value = "网关名称的值")
    private String value;
    @ApiModelProperty(value = "网关名称的标签")
    private String label;
    @ApiModelProperty(value = "网关servers")
    private List<Children> children;

    @Data
    @NoArgsConstructor
    @AllArgsConstructor
    @Builder
    @JsonInclude(JsonInclude.Include.NON_NULL)
    public  static class Children implements Serializable {
        private static final long serialVersionUID = -4938169874903189286L;
        private String id;
        private String value;
        private String label;
        private List<Children> children;
    }
}
